package Ejercicios;

/**
 * Convierte un Double-->Float-->Double-->String-->Integter
 */

public class Conversiones2 {
    public static void main(String[] args) {
      Double x = 0.0;
      Float c= x.floatValue();
        System.out.println("Float:"+c);
      Double e= c.doubleValue();
        System.out.println("Double:"+e);
      String s= e.toString();
        System.out.println("String:"+ s);
      System.out.println("Integer:"+Integer.parseInt(s.substring(0,s.length()-2)));
   }
}